package de.uni_mannheim.informatik.ai.dame_ai.dame.domain;

public class Square {
	@Override
	public boolean equals(Object obj) {
		if(obj instanceof Square){
			Square temp = (Square)obj;
			if(isHighlighted == temp.isHighlighted){
				return true;
			} else return false;
		} else return false;
	}

	protected boolean isHighlighted;
	protected boolean isSelected;
	/**
	 * Creates a simple square
	 */
	public Square() {
		isHighlighted=false;
		isSelected=false;
	}
	public Square(Square square){
		isHighlighted = square.isHighlighted();
		isSelected = square.isSelected();
	}
	/**
	 * 
	 * @param isHighlighted True if piece is highlighted
	 * @param isSelected True if piece is selected
	 */
	public Square(boolean isHighlighted, boolean isSelected) {
		this.isHighlighted = isHighlighted;
		this.isSelected = isSelected;
	}

	public boolean isHighlighted() {
		return isHighlighted;
	}

	public void setHighlighted(boolean isHighlighted) {
		this.isHighlighted = isHighlighted;
	}

	public boolean isSelected() {
		return isSelected;
	}

	public void setSelected(boolean isSelected) {
		this.isSelected = isSelected;
	}
	
}
